﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Learn.WCF.Client.ServiceReference1;

namespace Learn.WCF.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            IService1 serv = new Service1Client();
            Console.WriteLine(serv.GetData(2));

            CompositeType ct = new CompositeType();
            ct.BoolValue = true;
            ct.StringValue = "my string";

            Console.WriteLine(serv.GetDataUsingDataContract(ct).StringValue);

            Console.ReadLine();
        }
    }
}
